package com.ishare.common.entity.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.List;

/**
 * @description: 树形菜单数据VO
 * @author: DENGMINGWEN
 * @time: 2021/3/4 16:31
 */
@ApiModel("树形菜单数据VO")
public class MenuTreeDataVO implements Serializable {

    private static final long serialVersionUID = -6132001365784951302L;
    /**
     * 菜单id
     */
    @ApiModelProperty(value = "菜单id")
    private Long menuId;

    /**
     * 菜单名称
     */
    @ApiModelProperty(value = "菜单名称")
    private String title;

    /**
     * value
     */
    @ApiModelProperty(value = "a-tree需要参数value")
    private Long value;

    /**
     * key
     */
    @ApiModelProperty(value = "a-tree需要参数key")
    private Long key;

    /**
     * 子菜单
     */
    @ApiModelProperty(value = "子菜单")
    private List<MenuTreeDataVO> children;

    public Long getMenuId() {
        return menuId;
    }

    public void setMenuId(Long menuId) {
        this.menuId = menuId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Long getValue() {
        return value;
    }

    public void setValue(Long value) {
        this.value = value;
    }

    public Long getKey() {
        return key;
    }

    public void setKey(Long key) {
        this.key = key;
    }

    public List<MenuTreeDataVO> getChildren() {
        return children;
    }

    public void setChildren(List<MenuTreeDataVO> children) {
        this.children = children;
    }

    @Override
    public String toString() {
        return "MenuTreeDataVO{" +
                "menuId=" + menuId +
                ", title='" + title + '\'' +
                ", value=" + value +
                ", key=" + key +
                ", children=" + children +
                '}';
    }
}
